namespace SPI.AgentServer.Models;

/// <summary>
/// 导出请求
/// </summary>
public class ExportRequest
{
    /// <summary>
    /// 工具名称
    /// </summary>
    public string ToolName { get; set; } = string.Empty;

    /// <summary>
    /// 工具参数
    /// </summary>
    public Dictionary<string, object> Parameters { get; set; } = new();

    /// <summary>
    /// 导出格式：excel, csv
    /// </summary>
    public string Format { get; set; } = "excel";

    /// <summary>
    /// 文件名（可选，不含扩展名）
    /// </summary>
    public string? FileName { get; set; }

    /// <summary>
    /// 工作表名称（仅 Excel）
    /// </summary>
    public string? SheetName { get; set; }
}

/// <summary>
/// 批量导出请求（多工作表）
/// </summary>
public class BatchExportRequest
{
    /// <summary>
    /// 多个工具查询
    /// Key: 工作表名称
    /// Value: 工具查询配置
    /// </summary>
    public Dictionary<string, ToolQuery> Queries { get; set; } = new();

    /// <summary>
    /// 文件名（不含扩展名）
    /// </summary>
    public string FileName { get; set; } = string.Empty;
}

/// <summary>
/// 工具查询配置
/// </summary>
public class ToolQuery
{
    /// <summary>
    /// 工具名称
    /// </summary>
    public string ToolName { get; set; } = string.Empty;

    /// <summary>
    /// 工具参数
    /// </summary>
    public Dictionary<string, object> Parameters { get; set; } = new();
}




